package realQuestion.baidu;

import java.util.Scanner;

public class Main1 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t=scanner.nextInt();
        for (int i = 0; i < t; i++) {
            int n= scanner.nextInt();
            int m= scanner.nextInt();
            boolean b = find(n, m);
            if (b==true){
                System.out.println("Yes");
            }else {
                System.out.println("No");
            }
        }
    }


 public   static boolean find(int n,int m){

          if (n%2==0&&m%2!=0||n%2!=0&&m%2==0){
              return  true;
          }


        return  false;
    }





}
